package com.hxkj.controller;

import com.integral.mall.file.service.SysFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户控制器
 * <p>
 * Created by chenwei on 2018/5/15.
 */
@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @Autowired
    private SysFileService sysFileService;


//    /**
//     * 通过id获取用户信息
//     *
//     * @param file
//     * @return
//     * @throws Exception
//     */
//    @RequestMapping(value = "/upload", method = RequestMethod.POST)
//    void upload(@RequestParam("file") MultipartFile file) throws Exception {
//        SysFile sysFile = sysFileService.fileUploadImg(file, "image", "tk/" + FileUtil.getYMDPatternPath());
//        log.info("文件路径为:{}", sysFile.getFilePath());
//    }


}
